"""
@name : 题2
@author : smm
@projectname: YI BO
"""

#  有以下列表：list1=[7, -8, 5, 4, 0, -2, -5]
# • 正数在前负数在后
# • 整数从小到大
# • 负数从大到小
list1=[7, -8, 5, 4, 0, -2, -5]
list0=[]
list2=[]
i = 0
for i in list1:
    if i >0:
        list0.append(i)
    elif i <=0:
        list2.append(i)
list0.sort()
result = sorted(list2,reverse=True)
list1 = list0 + result
print(list1)
